package com.cmc.cloud.cmclink.doc.vo.voyagebsahgvo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import org.hibernate.validator.constraints.Length;

import java.math.BigDecimal;
import javax.validation.constraints.*;

/**
 * 高箱计算标准 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 *
 * @author codegen
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class VoyageBsaHgBaseVO {

    @Schema(description = "舱位主信息id", requiredMode = Schema.RequiredMode.REQUIRED, example = "29370")
    @NotNull(message = "{VoyageBsaHgBaseVO.voyageBsaId.NotNull}")
    private Long voyageBsaId;

    @Schema(description = "箱型", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotBlank(message = "{VoyageBsaHgBaseVO.cntrType.NotBlank}")
    @Length(max = 2, message = "{VoyageBsaHgBaseVO.cntrType.Length}")
    private String cntrType;

    @Schema(description = "箱尺寸", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "｛VoyageBsaHgBaseVO.cntrSize.NotBlank｝")
    @Length(max = 2, message = "{VoyageBsaHgBaseVO.cntrSize.Length}")
    private String cntrSize;

    @Schema(description = "teu标准", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "{VoyageBsaHgBaseVO.teuStandard.NotNull}")
    private BigDecimal teuStandard;

    @Schema(description = "unit阈值", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "{VoyageBsaHgBaseVO.unitThreshold.NotNull}")
    private Integer unitThreshold;

    @Schema(description = "备注")
    @Length(max = 255, message = "{VoyageBsaHgBaseVO.remark.Length}")
    private String remark;

}
